/************************************************************************************
* SongInfoDisplayWidget.h                                                           *
*                                                                                   *
* Copyright (C) 2011 Varuna L Amachi                                                *
*                                                                                   *
* This program is free software; you can redistribute it and/or modify              *
* it under the terms of the GNU General Public License as published by              *
* the Free Software Foundation; either version 2 of the License, or any             *
* later version.                                                                    *
*                                                                                   *
* This program is distributed in the hope that it will be useful, but               *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY        *
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for       *
* more details. You should have received a copy of the GNU General Public           *
* License along with this program; if not, write to the Free Software Foundation,   *
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                       *
*                                                                                   *
*************************************************************************************/

#ifndef SONGINFODISPLAYWIDGET_H
#define SONGINFODISPLAYWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QTimer>

#include "common/MediaItem.h"
#include "common/CommonTypes.h"
#include "widgets/SongScroller.h"
#include "widgets/StarWidget.h"

class SongInfoDisplayWidget : public QWidget
{
    Q_OBJECT
    StarWidget* m_starWidget;
    SongInfo m_currDisp;
    MediaItem* m_item;
    QLabel* m_timeLabel;
    QLabel*  m_bitrateLabel;
    QLabel*  m_freqLabel;
    QLabel*  m_channelLabel;
    SongScroller* m_scroller;
    QLabel* m_cover;

public:
    explicit SongInfoDisplayWidget(QWidget *parent = 0);
    void setupUi();
    void setItem(MediaItem* item);

public slots:
    void reset();
    void refresh();
    void tick(qint64 timeMs);

signals:
    void ratingChanged(MediaRating rating);
};

#endif // SONGINFODISPLAYWIDGET_H
